package com.chenjt.jvm.first.four_stack.DynamicLinking;

/**
 * 注释：虚方法表的举例
 *
 * @author chenjt
 * @date 2025/6/7 9:10
 */
interface Friendly{
    void sayHello();
    void sayGoodbye();
}

class Dog {
    public void sayHello(){
    }

    public String toString(){
        return "Dog";
    }

}

class MyCat implements Friendly{
    public void eat(){

    }

    @Override
    public void sayHello() {

    }

    @Override
    public void sayGoodbye() {

    }
    protected void finalize(){

    }

    public String toString(){
        return "Cat";
    }

}

class CockerSpaniel extends Dog implements Friendly{
    public void sayHello(){
        super.sayHello();
    }

    @Override
    public void sayGoodbye() {
    }
}


public class VirtualMethodTable {





}
